Refactor the way Actions are created.