Some level loading mechanic refactoring.