Bit curious as to  why you chose to move this code into `common.c`.