Legislative or executive office?

def route_election(self, election):
        """
        Legislative or executive office?
        """
        if (
            election.election_type.slug == ElectionType.GENERAL
            or ElectionType.GENERAL_RUNOFF
        ):
            self.bootstrap_general_election(election)
        elif election.race.special:
            self.bootstrap_special_election(election)

        if election.race.office.is_executive:
            self.bootstrap_executive_office(election)
        else:
            self.bootstrap_legislative_office(election)