encap: Use `quadrature` (protected) throughout.

Signed-off-by: Matthew Emmett <memmett@gmail.com>
encap: Use `state` (protected) throughout.

Signed-off-by: Matthew Emmett <memmett@gmail.com>
imex: Remove duplicate methods.

Signed-off-by: Matthew Emmett <memmett@gmail.com>