[addons] cleanup the service add-on pre/post install code