h/application: An attempt was made at cleaning up the carouselcheck fn

Note that I am not completely sure that that will be happy. I just split
stuff up and made it a bit prettier.