Refactors records API methods.