Remove duplicated code when keyword arguments are missing