apply refinements inside module for ruby version >= 2.1.0