Object `store` contains single method now. Replace it with function.