Moved coords factory into its own folder/file.