moved most_common_value function from environment.rb to entry_utils module