This logic is not needed here. It exists in the /feed handler for legacy reasons (in the early days the feed links were by numeric IDs).