Removing extraneous Ruby function