Refactoring level creation