Move location grammar to a separate module in case this needs to be used
elsewhere.