Refactored parallel composition task using a compositor.