refactor: move code to get a stat given its full name into osta class