Build: move xtext routines out of auths drivers to main