Please get these from the db object that should be accessible everywhere. Like db.joinedload.