Then all zoning goes to the state level?
In the two states I've lived in in the last many decades, it already is, in a sense. There are overarching zoning limits and legal principles. Towns are empowered to enact zoning codes (or none at all) within those limits, but the state sets those limits, and prevents towns from many actions. In Vermont, for example, the state does not allow any town to zone out mobile homes. In Connecticut (where I was for some years chairman of the Zoning Board of Appeals) there were a whole slew of regulatory limits to insure against various wrongs such as spot zoning and confiscatory zoning. Appeals from the local appeal process do go directly to the State level.
Leaving enforcement up to towns allows a certain amount of autonomy and saves the state some complication in administration.
I have no problem with local ordinances and enforcement, but I do think that there should be over-arching State laws that regulate what can and cannot be done, and among those would be a uniformity of codes for anything that can cross town lines.
Bicycle licensing strikes me as a troublesome subject. Most places with licensing and helmet laws have an age specification that seems to enforce the idea that both cycling and helmet use are for kids (they need not be licensed but do need helmets). But if there are to be such laws, I think they must be state laws, so that a person does not find himself in trouble when he accidentally crosses town lines, and if enactment is left as a local option, there must be reciprocity. The alternative is the kind of scene we see here, where unnecessary hassle is dealt out by cops with discretion to act with racist bias and to make up impossible criteria that guarantee their ability to handcuff kids and arrest them. One can predict that the charges, whatever they are, will be dropped, but one can also bet that it will difficult if not impossible for kids so arrested to recover their bikes, and that their hatred and distrust of police will forever be justified.