Move logic to reject slugs that are just numbers into the slug module