[RFC PATCH] component: Add common helpers for compare/release functions