Update the brushing code to use the d4 accessor pattern.