Move common infrastructure to a repository