Refactor.
Adopt findlib.