Refactoring quotas. Part 1.

Removed Quota factories and quota interface.