Move execution logic to Executor class.