Fix to #78 issue.
Re-factor code for limiting OpenStack and TopStack instances to reduce duplication.