1. An apparatus comprising: a reception unit configured to receive selection of a function; and a determination unit configured to determine whether to perform hardware processing or software processing on the function based on a free space in a storage unit configured to store hardware information related to the hardware processing on the function and function information related to the function.