Remove redundancy codes in home#index