extract mappings to class