Implement the protect condition build function.