Better encapsulation of framework functionality