Here in Australia we got rid of gerrymandered by establishing an independent agency to shape electoral boundaries based purely on population size - not voting intention. It also runs all our elections, local state and federal.