Cleanup multiple grid references