Making afterPath optional on Token Factory interface