This should be probably moved to `pidstore` module.