Move external functions to helper module, manager_pto_extensions.rb