A General Procedure for Constructing Mortality Models