Refactor adapters into engines.

- Refactors job expire.