extract action_logger code into lib/utils/data_mapper/model.rb