I take it the point of this to remove templates from your code base? Can you have custom IDs for the email templates (ex: "welcome_email")?
We encourage our customers to use a static "mapping", with constants set to each template id. IE WELCOME_EMAIL = '12345'