I have a hallway light switch that is 20 feet away from a bedroom; therefore, I have to walk in the dark to reach the switch before illuminating the hallway. Is there a reference in the code for a required switch near the bedroom?