> However, anything that does not bring obvious value (bug fixing, refactoring) should be counted out of output in terms of productivity
Not counting refactoring as output makes sense, because it's more of repositioning for future output, and/or recreation.
But if fixing bugs doesn't bring value, why do you do it?