Remove some repetition.