Splitting application into core and environments