Move the Specs class to base services now that it no longer depends on the deprecation logger.

Also cleaned up some compiler warnings in the process.
Garbage reduction and some simplifications of the schema extraction process.

+review REVIEW-5245
Some more garbage reduction.

+review REVIEW-5245