Cleanup the CanTarget method

Removes duplicate code.