<quote>it doesn't allow to merge only parts of
projects</quote>
Use build tags to exclude what you don't want in a particular
build. Create multiple layouts, with and without the build
expression and it should be quite straightforward.
Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.