Refs #5037 Refactor the factory out of the Period class in its own Period\Factory class