Encapsulating framework logic