Refactoring level creation.