Uglify previous refactoring for a bit.

Signed-off-by: Karel Tuma <karel.tuma@gmail.com>