Set register and unregister method of FunctionPipeline only callable if the pipeline are in build mode.