Remove unnecessary pubs from script_task