Move the code to the proper namespace and change some arguments from the sculpt paint struct to just the brush.