DRYed the code using define_method for find, select and reject _hashed