CLSN-2165move all queries to session.query from session.queryover
CLSN-2167make all repository classes internal