Refactored getting mappings