Refactoring to support execution of external fitness program