What factors must be considered by government agencies  whether to produce a good or service in-house or contract it out

According to the Congressional Budget Office, what factors must be considered by government agencies  whether to produce a good or service in-house or contract it out?