[JENKINS-25169] Move exclude protocol to a better location.