`timeForNextWestTrain()` and `timeForNextEastTrain()` seem pretty similar. Is there a way we can share the functionality between the two? What is different between them?