Extracted field creation logic and moved randomizers in their own namespace.