Pull out configure() to its own file