Simplify magic getters in third party API classes