Cleaned up door code

More to come, but this helps a little. Should make changing dim door
behavior much easier.