If you are the one who downgraded it to Windows 7, then doing a factory reset will bring back Windows 8 since Windows 8 will be the Operating System on the recovery partition as @Moab commented. The only solution in this case is to clean install Windows 7.
If the manufacturer downgraded to Windows 7, then there is an equal chance of the recovery partition having either Windows 7 or Windows 8.