Regroup functions in build scripts