refactoring: remove magic numbers usage.

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