A function in the sense that a brick has a set of events, such as conditions, that can be used by multiple bricks and return a relay if they are true. There have been times where something like that could be useful, but I've had to repeat the same events over and over.