Extract variable to try and work around javac bug.