Encapsulate external library into Magento model