Refactor Forking.php