Factored out dialect metadata a bit more