Move internal classes to behind method definitionss