Separated out computation of factor metadata.