Replace internal S4 object to represent L1 and L2 solver with a simple environment