Some Deduplication of Status Checking

For commands that operate on a single AnP, consolidate their error checking logic.