Moved methods related to reflection to reflection extensions