[PECOFF] Moves a utility function to Atoms.cpp to remove duplicate code.