project: Factor out a functio to check backup project