Handle creating an AbstractContext only once