Well the code for creating lairs might make it easier for the devs to actually make caverns and such. I've always wondered why they couldn't set a mobs aggro range or behavior so that they could create a cavern and have the mob not leave no matter what happened. I thought that way way way back one of the devs gave us the reason why something like that wasn't possible. I honestly don't remember the exact reason.