LevelBuilder support for play lab

[Finishes: #79639696, #79639780, #79639834, #79639722]
I have no idea what this rather complicated function is doing, it could really use a comment explaining its purpose.