Add partition template and remove unused templates.