Some refactoring in map_object_actions library.