refactor MagicNumberChecker to be more simple