Adding array_unique to make sure we don't double-add post types.

Signed-off-by: Ronald Huereca <ronalfy@gmail.com>
Removing unused class variable and removing extract function.

Signed-off-by: Ronald Huereca <ronalfy@gmail.com>