Nested datasource plugin with backend

I have an app plugin with a backend and a data source plugin with a backend and now I want to nest the data source plugin with the app plugin. Should I merge the backend code or should they be two separate executables? If separate, how should I set up the project?