deforestation: tiny small refactoring