Create layout task factory and task