Copy _custom partial from uhd_base.