Refactor the radec() method into a superclass