Refactor stderr echo