api3 and BAO class is created

You might want to remove declaration of this function since this would conduct a check on the magic word which is not being passed.