refactoring: remove magic numbers.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>