Flexible generationId configuration; outlanders handling

magic numbers shouldn't be used in code, numbers should be factored out as constants.