Abstracting a third-party class