Split out the build phases