Refactoring.
Abstracted loading of native methods.