Refactoring how GPIO is accessed.