Replaced magic numbers inside candidates_create_internal() with enumerated list