Move execution context into peewee