Simplification and unification of linear solvers' code.