[PATCH 2/2] Get rid of duplicated timer code