Since we do brute force update (DELETE ALL+INSERT ALL) of the parent categories we need to always write the parent category hierarchy. Bug: T246568 Change-Id: Id9c3282a97bf3fc3d5355cc08a0c9d833c72c9b2