chore: replace replaceWith with remove in onceIf directive