`build_app_deb` and `build_monitor_deb` also look very similar, with the exception that `/www` is not used here. Again, could we gate that on a flag passed as a function argument? Or do you expect that these functions would diverge significantly in the future? Another option could be to chunk common pieces of functionality into functions.