Factor out covariance module