Backends: Move internal datastructures into package.
Backends: Simplify some internal naming.