Patient bean code cleanup.