Wrapping up the ApiDefinition class.
Moving to the lib.