refactor brush library