• One possibility is to create a package with the common logic and call it as needed.