Allow to reuse only declarations of primitives and immutable objects