I think this code is repeated in the other labels method. Couldn't this be extracted to another method?