Looking whether extended base is a Class or Module when extending it with MagnumPI::API
Extracted parsing resource variables to a separate method