Pure refactoring change.

Patch by Artyom Skrobov.