Remove unused namespace imports from entities