JENKINS-21600: Refactor lazy loading.