Move code to minitimes package