Generalize bulk_operations logic the nesting logic
LMS-11366