BUG-4688: Rework SchemaContext module lookups