add scoping. Remove metaprogramming.

This brings ActiveFedora into parity with a more recent version of
ActiveRecord