I've been really upset at the following code:
@autobind
handleTabSwitch(index) {
this.setState({ index });
const { router: { params: { tab }, location } } = this.props;
const identifier = this.identifierMap[index];
const { search, pathname } = location;