Please, consider the following options, possibly one of them would be better:

**Option 1**. Don't create any new functions, just change the `_colored_time` as follows:

        def _colored_time(self, time_taken):
             if self.time_no_color:
                 return "{0:0.4f}s".format(time_taken)
            ...

So, there is no need to change other places.

**Option 2**. You can have two functions - `_colored_time`, `_non_colored_time` and in plugin constructor you can do something like this:

        self._color_format_func = self._non_colored_time id options.timer_no_color else self._colored_time

And in all required places use the `self._color_format_func`, to get rid of those if...else branches.