Reduce code complexity in toolbox feature.
Ruby is beautiful