Register metatype at better place