[PATCH v3 04/13] loader: Refactor number parsing to own function.