Moar linalg cleanup