moving scopes into ClassMethods module for better documentation.