Removed effectively duplicated block of code
Merge pull request #571 from ainsej/cleanup-1

Removed effectively duplicated block of code