- simplify.  make the base declared_attr memoized.
- clean up imports