Relocate generator helper functions