Refactors secondary nav pills component