Add lint guard for mixing code between domains

Right now it's easy to import code from database in core etc.

This issue aim to add some guard that will fail on CI when such import occurs