LB-1643: e2e delete post

do u have any idea how to generalize this (from line 72 to 78) part in each function in this module?