Separate obtaining of store ID into the class method.