Tidied up brush culling code somewhat.