Move deferred lighting into its own class.