Separate Meta and Sql generation.