Move lang-specific code to dirs