Refactor the code to have a unique place for signature definition.