Use `shared_ptr` for quadrature, move `state` etc to `encap_sweeper`.

Any reason for using the getter here ...