Refactor: move package IRegistrable to the attributes