Get rid of boilerplate on index