Move Schmidt decomposition of determinant to another module