WIP: Refactoring of composition creation process
The refactoring will include the next changes:
- Merging the planning and validation stage.
- Dropping the replanning of composition structure after the validation stage.
- Moving problematic functionality into more convenient classes.