no-ticket: Removed duplicated code.