Refactor: Breaking out executor code with an initiator and adding tests.