[Extensions] Remove the InternalExtension class

All the functionality was moved tho the ExtensionFunctionHandler and
can be optionally used via composition.