refactor sunset into a Nitrogen application