refactor rule packaging to be handled by one project