preservationmeter: Extracts import out of function.

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>