encapsulate gpio setup/cleanup into relay/powerswitcher module;