Encapsulate the child tag mask computation into child_tag_mask()
  function.