How Architecture Shapes Habits