Extract setup stuff into a reusable file