Split codebase for different stages