background-gradient[grid]: Clean-up and encapsulate initalization code.