Moved atoms-to-map method from Server to Atoms.