Reduce code complexity in toolbox feature.