Move some core infrastructure to an independent module so we can share this among different test (non-public) locations