Extract ScopeKeys module from PrimaryKey