Refactored X509 status to improve readability by using macros for common operations.