Utility function for Stuart Sierra's Component library