Removes last builds from build history array prior to being passed through any discard conditions. The last builds are: lastCompletedBuild, lastFailedBuild, lastStableBuild, lastSuccessfulBuild, lastUnstableBuild and lastUnsuccessfulBuild.