Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Each rule implement optimize_children inside themselves. we can unify them.
Describe the solution you'd like
reuse code utils::optimize_children instead of redundant implementation
Describe alternatives you've considered
Additional context