Remove extraneous namespace parameters

Now that we are dealing with objects, pass around the namespace
instance variable rather than duplicating namespace references.