Move code from executables module to deployer module