Refactor the coordinates to have a base class and remove duplicate code
Move functions from Utils to coordinates where they should be