rename operation_mappings to operation_mapping_context
and move validate_no_duplicate_operations up here