Refactor ex_act and emp_act.