Refactor click link with using Simple Factory Pattern.